<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="__PUBLIC__/Css/default.css" rel="stylesheet" />
<script type="text/javascript" src="__PUBLIC__/Js/artDialog.source.js?skin=default"></script>
<script type="text/javascript" src="__PUBLIC__/Js/iframeTools.source.js"></script>
<title>明星列表</title>
<style type="text/css">
body{
	font-size:12px;	
}
.weight{
	font-weight:bold;
	color:#FFF;
}
.padding-right10{
	padding-right:10px;
}
.padding-left10{
	padding-left:10px;
}
.img-padding2{
	padding:2px;
	border:1px solid #D2D2D2;
}
</style>
<script type="text/javascript">
//开启或禁用
function changeStatus(msg,id,status){
	if (confirm("您确定要"+msg+"吗？"))
	window.location = "__APP__/Star/changeStatus/id/"+id+"/status/"+status;
	return false;
}

function reCom(id){
	art.dialog.open("__APP__/Star/recomGoods/id/"+id);
}
</script>
</head>

<body>
<table width="98%" border="0" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
  <tr class="weight">
    <td width="5%" height="50" align="center" valign="middle" bgcolor="#31516a">ID</td>
    <td width="8%" height="50" align="center" valign="middle" bgcolor="#31516a">明星头像</td>    
    <td width="8%" height="50" align="center" valign="middle" bgcolor="#31516a">明星中文名</td>
    <td width="5%" height="50" align="center" valign="middle" bgcolor="#31516a">明星性别</td>
    <td width="8%" height="50" align="center" valign="middle" bgcolor="#31516a">明星生日</td>
    <td width="5%" height="50" align="center" valign="middle" bgcolor="#31516a">明星星座</td>
    <td width="5%" height="50" align="center" valign="middle" bgcolor="#31516a">明星身高</td>
    <td width="5%" height="50" align="center" valign="middle" bgcolor="#31516a">明星体重</td>
    <td width="5%" height="50" align="center" valign="middle" bgcolor="#31516a">明星血型</td>
    <td width="17%" height="50" align="center" valign="middle" bgcolor="#31516a">明星微博</td>
    <td width="5%" height="50" align="center" valign="middle" bgcolor="#31516a">状态</td>
    <td width="10%" height="50" align="center" valign="middle" bgcolor="#31516a">创建时间</td>
    <td width="14%" align="center" valign="middle" bgcolor="#31516a">操作</td>
  </tr>
  <volist name="list" id="vo">
  <tr>
    <td width="5%" height="60" align="center" valign="middle" bgcolor="#FFFFFF">{$vo.id}</td>
    <td width="8%" height="60" align="center" valign="middle" bgcolor="#FFFFFF"><if condition="$vo.photo neq ''"><img src="{$vo.photo}" class="img-padding2" /><else />{$vo.photo}</if></td>
    <td width="8%" height="60" align="center" valign="middle" bgcolor="#FFFFFF">{$vo.chinese_name}</td>
    <td width="5%" height="60" align="center" valign="middle" bgcolor="#FFFFFF">{$vo.sex}</td>
    <td width="8%" height="60" align="center" valign="middle" bgcolor="#FFFFFF">{$vo.birthday}</td>
    <td width="5%" height="60" align="center" valign="middle" bgcolor="#FFFFFF">{$vo.constellation}</td>
    <td width="5%" height="60" align="center" valign="middle" bgcolor="#FFFFFF">{$vo.height}</td>
    <td width="5%" height="60" align="center" valign="middle" bgcolor="#FFFFFF">{$vo.weight}</td>
    <td width="5%" height="60" align="center" valign="middle" bgcolor="#FFFFFF">{$vo.blood_type}</td>
    <td width="17%" height="60" align="center" valign="middle" bgcolor="#FFFFFF">{$vo.weibo_address}</td>
    <td width="5%" height="60" align="center" valign="middle" bgcolor="#FFFFFF"><if condition="$vo.status eq 1">正常<else />禁用</if></td>
    <td width="10%" height="60" align="center" valign="middle" bgcolor="#FFFFFF">{$vo.create_datetime}</td>
    <td width="14%" height="60" align="center" valign="middle" bgcolor="#FFFFFF"><a href="__APP__/Star/edit/id/{$vo.id}" target="main">修改</a>　<if condition="$vo.status eq 1">
            <a href="#" onclick="changeStatus('禁用此明星',{$vo.id},2)">禁用</a>
            <else />
            <a href="#" onclick="changeStatus('重新开启此明星',{$vo.id},1)">重启开启</a>
            </if> <a href="#" onclick="reCom({$vo.id})">推荐同款</a></td>
  </tr>  
  </volist>
  <tr>
    <td height="50" colspan="13" align="center" valign="middle" bgcolor="#FFFFFF">&nbsp;</td>
  </tr>
</table>

</body>
</html>
